Solo-Fast Universal Constructions for Deterministic Abortable Objects

نویسندگان

  • Claire Capdevielle
  • Colette Johnen
  • Alessia Milani
چکیده

In this paper we study efficient implementations for deterministic abortable objects. Proposed by Hadzilacos and Toueg [8] a deterministic abortable object ensures that if several processes contend to operate on it, it may return a special response abort to indicate that the operation failed. And it guarantees that an aborted operation does not take effect. Operations that do not abort return a response which is legal w.r.t. the sequential specification of the object. Similarly to obstruction-free objects, the behavior of abortable objects degrades when there is contention. On the other hand, abortable objects always return the control to the caller of an operation, and when this happens the caller knows if the operation took place or not. This is an ideal behavior for shared objects [3]. Since they deal with correctness and progress separately, we expect simple and efficient algorithms to implement deterministic abortable objects. Attiya et al. proved that it is impossible to implement these objects only with read/write registers, [3]. Thus, we study implementations that use only read/write registers when there is no contention and use stronger synchronization primitives, e.g., CAS, when contention occurs. These implementations are called solo-fast and are expected to take advantage of the fact that in practice contention is rare. The notion of solo-fast was defined in [3] for step contention : There is step contention when the steps of a process are interleaved with the steps of another process. In the same paper, they prove a linear lower bound on the space complexity of solo-fast implementations of obstruction-free objects. This result also holds for deterministic abortable objects. We consider an asynchronous shared-memory system where n processes communicate through linearizable base objects and can fail by crashing, i.e.; a process can stop taking steps while executing an operation. In this model we study the possibility to implement deterministic abortable objects with a better space complexity than linear if a process is allowed to use strong synchronization primitives even in absence of step contention, provided that its operation is concurrent with another one. This notion of contention is called interval contention [1]. Step contention implies interval contention, the converse is not true. Also, we consider implementations where a crashed process can cause only a finite number of concurrent operations to abort. This property, called non-triviality, is formally defined in [2]. Unfortunately, we prove that some abortable object implementation should have Ω(n) space complexity [4]. The proof of the lower bound is similar to the one presented in [3] and it is not provided in this paper for lack of space. Here we present a solo-fast universal construction for deterministic abortable objects whose space complexity is O(n) if the implemented object has constant size. A universal construction [9] is a methodology for automatically transform any sequential object in a concurrent one. In the following we provide the main ideas of our construction (A detailed description is in Section 2) : Writing operations are applied one at the time. Each process makes a local copy of the object and computes the new state locally. We associate a sequence number to each state. A process that wants to modify the ith state has to compete to win the i + 1th sequence number. A process that does not experience contention uses only read/write registers, while a CAS register is used in case of contention to decide the new state. It may happen that (at most) one process p behaves as if it was running solo, while other processes were competing for the same sequence number. In this case, we use a lightweight helping mechanism to avoid inconsistency : any other process acquires the state proposed by p as its new state. If it succeeds to apply it, it notifies the process p that its state has been applied. Then the helping process aborts. An implementation resulting from our universal construction is wait-free [9], linearizable [11], nontrivial [2], and non-trivial solo-fast (a process p applies some strong primitive when performing an

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

k-Abortable Objects: Progress Under High Contention

In this paper, we define k-abortable objects, the first kind of abortable objects [2,7] that guarantee some degree of progress even under high contention. The definition is simple and natural: intuitively, an operation on a k-abortable object can abort only if k operations from distinct processes succeed during the execution of the aborted operation. We first show that k-abortable objects can e...

متن کامل

Universal Constructions for Large Objects

We present lock-free and wait-free universal constructions for implementing large shared objects. Most previous universal constructions require processes to copy the entire object state, which is impractical for large objects. Previous attempts to address this problem require programmers to explicitly fragment large objects into smaller, more manageable pieces, paying particular attention to ho...

متن کامل

Computing with Reads and Writes in the Absence of Step Contention

This paper studies implementations of concurrent objects that exploit the absence of step contention. These implementations use only reads and writes when a process is running solo. The other processes might be busy with other objects, swapped-out, failed, or simply delayed by a contention manager. We study in this paper two classes of such implementations, according to how they handle the case...

متن کامل

Splitters and Near-Optimal Derandomization

We present a fairly general method for nding deterministic constructions obeying what we call krestrictions; this yields structures of size not much larger than the probabilistic bound. The structures constructed by our method include (n; k)-universal sets (a collection of binary vectors of length n such that for any subset of size k of the indices, all 2 k con gurations appear) and families of...

متن کامل

The RedBlue Adaptive Universal Constructions

We present the family of RedBlue algorithms, a collection of universal wait-free constructions for linearizable shared objects in an asynchronous shared-memory distributed system with n processes. The algorithms are adaptive and improve upon previous algorithms in terms of their time and/or space complexity. The first of the algorithms is of theoretical interest only; it achieves better time co...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014